////
////  NetworkSingleton.h
////  meituan
////
////  Created by jinzelu on 15/6/17.
////  Copyright (c) 2015年 jinzelu. All rights reserved.
////
//
//#import <Foundation/Foundation.h>
//#import "AFNetworking.h"
//
//
////请求超时
//#define TIMEOUT 30
//
//typedef void(^SuccessBlock)(id responseBody);
//typedef void(^SuccessBolckStr)(NSString *responseBody) ;
//typedef void(^FailureBlock)(NSString *error);
//
//
//@interface NetworkSingleton : NSObject
//
//+(NetworkSingleton *)sharedManager;
//-(AFHTTPSessionManager *)baseHtppRequest;
//
//#pragma mark - 共通请求类
//- (void)weiXinNetworkPostRequestLibrary:(NSString *)params commonRequestUrl:(NSString *) requestUrl successBlock:(SuccessBlock)successBlock failureBlock:(FailureBlock)failureBlock;
//- (void)commonNetworkPostRequestLibrary:(NSDictionary *)params commonRequestUrl:(NSString *) requestUrl successBlock:(SuccessBlock)successBlock failureBlock:(FailureBlock)failureBlock;
//- (void)commonNetworkGetRequestLibrary:(NSDictionary *)params commonRequestUrl:(NSString *) requestUrl successBlock:(SuccessBlock)successBlock failureBlock:(FailureBlock)failureBlock;
//
//- (void)commonNetworkWithHUDcommonRequestUrl:(NSString *) requestUrl successBlock:(SuccessBlock)successBlock failureBlock:(FailureBlock)failureBlock;
//- (void)commonNetworkWithHUDPostRequestLibrary:(NSDictionary *)params commonRequestUrl:(NSString *) requestUrl successBlock:(SuccessBlock)successBlock failureBlock:(FailureBlock)failureBlock;
//
//- (void)getFlightOrderInfo:(NSDictionary *)params flightInfoOrder:(NSString *) flightInfoOrder successBlock:(SuccessBolckStr) successBlock failureBlock:(FailureBlock)failureBlock;
//
//#pragma mark - 机票订单存储到数据库
//- (void)saveFlightOrderToSql:(NSDictionary *)params sqlUrl:(NSString *) sqlUrl successBlock:(SuccessBolckStr) successBlock failureBlock:(FailureBlock)failureBlock;
//
//#pragma mark - 自动支付机票订单
//- (void)payForFlightOrder:(NSDictionary *)params OrderInfo:(NSString *) OrderInfo successBlock:(SuccessBolckStr) successBlock failureBlock:(FailureBlock)failureBlock;
//
//#pragma mark - 飞机票购买成功后发送短信
//- (void)sendFlightTicketMsg:(NSDictionary *)params message:(NSString *) message successBlock:(SuccessBlock) successBlock failureBlock:(FailureBlock)failureBlock;
//
//#pragma mark - 获取机票订单信息
//- (void)getUserOrderFlightInfo:(NSDictionary *)params orderUrl:(NSString *) orderUrl successBlock:(SuccessBlock) successBlock failureBlock:(FailureBlock)failureBlock;
//
//
//#pragma mark - 删除选中机票订单
//- (void)deleteFlightOrderFromSql:(NSDictionary *)params deleteSqlUrl:(NSString *) deleteSqlUrl successBlock:(SuccessBolckStr) successBlock failureBlock:(FailureBlock)failureBlock;
//
//
//#pragma mark - 获取机票订单的详细信息
//- (void)getFlightOrderDetailInfo:(NSDictionary *)params flightInfo:(NSString *) flightInfo successBlock:(SuccessBolckStr) successBlock failureBlock:(FailureBlock)failureBlock;
//
//#pragma mark - 获取火车票订单列表
//- (void)getTrainTicketOrderList:(NSDictionary *)params trainInfo:(NSString *) trainInfo successBlock:(SuccessBlock) successBlock failureBlock:(FailureBlock)failureBlock;
//
//#pragma mark - 删除火车票订单信息
//- (void)deleteTrainTickectInfoFromSql:(NSDictionary *)params ticketInfo:(NSString *) ticketInfo successBlock:(SuccessBolckStr) successBlock failureBlock:(FailureBlock)failureBlock;
//
//
//#pragma mark - 更新用户信息
//- (void)saveTrainTickectInfoToSql:(NSDictionary *)params ticketInfo:(NSString *) ticketInfo successBlock:(SuccessBolckStr) successBlock failureBlock:(FailureBlock)failureBlock;
//
//
//- (void)postTrainTicket:(NSDictionary *)params ticketInfo:(NSString *) ticketInfo successBlock:(SuccessBlock) successBlock failureBlock:(FailureBlock)failureBlock;
//
//- (void)getTrainTicketInfoList:(NSDictionary *)params searchInfo:(NSString *) searchInfo successBlock:(SuccessBlock) successBlock failureBlock:(FailureBlock)failureBlock;
//
//- (void)requestPingAnGameUrl:(NSDictionary *)params gameUrl:(NSString *)gameUrl successBlock:(SuccessBlock) successBlock failureBlock:(FailureBlock)failureBlock;
//
//#pragma mark - 获取手机号码归属地
//- (void)getPhoneArea:(NSDictionary *)params areaUrl:(NSString *) areaUrl successBlock:(SuccessBolckStr) successBlock failureBlock:(FailureBlock)failureBlock;
//@end
//
